let index = {
    method: 'GET',
    path: '/',
    handler: function(request, reply) {
        console.log("===========" + reply.toString() + "=======");
        return ('hello,world');
    }
};
let hello = {
    method: ['GET', 'POST'],
    path: '/hello/{user?}',
    handler: function(request, reply) {
        return ('Hello ' + encodeURIComponent(request.params.user) + '!');
    }
};

// let abc = {
//     method: ['GET', 'POST'],
//     path: '/abc',
//     handler: function(request, reply) {
//         return reply.file('../public/hello.html');
//     }
// };

module.exports = [index, hello];